<?php

namespace app\admin\validate;

use app\common\lib\Captcha;
use think\Validate;

class Role extends Validate
{
    protected $rule = [
        'id' => 'require',
        'role_name' => 'require',
    ];

    protected $scene=[
        'create'=>['role_name'],
        'update'=>['id','role_name'],
    ];

    protected $message = [
        'id' => 'id不能为空',
        'role_name' => '权限名称不能为空',
    ];
}
